home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch15 / 15fig11.wrl < prev    next >
Text File  |  1996-09-22  |  1KB  |  46 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material {
  8.             diffuseColor 0.0 1.0 0.7
  9.         }
  10.     }
  11.     geometry Extrusion {
  12.         creaseAngle 1.57
  13.         endCap   FALSE
  14.         beginCap FALSE
  15.         solid    FALSE
  16.         crossSection [
  17.         # Half-circle
  18.             -1.00  0.00,  -0.92 -0.38,
  19.             -0.71 -0.71,  -0.38 -0.92,
  20.              0.00 -1.00,   0.38 -0.92,
  21.              0.71 -0.71,   0.92 -0.38,
  22.              1.00  0.00,
  23.         ]
  24.         spine [
  25.         # Helix
  26.              2.00 0.00 -0.00,   1.85 0.12 -0.77,
  27.              1.41 0.24 -1.41,   0.77 0.36 -1.85,
  28.              0.00 0.48 -2.00,  -0.77 0.61 -1.85,
  29.             -1.41 0.73 -1.41,  -1.85 0.85 -0.77,
  30.             -2.00 0.97  0.00,  -1.85 1.09  0.77,
  31.             -1.41 1.21  1.41,  -0.77 1.33  1.85,
  32.              0.00 1.45  2.00,   0.77 1.58  1.85,
  33.              1.41 1.70  1.41,   1.85 1.82  0.77,
  34.              2.00 1.94  0.00,   1.85 2.06 -0.77,
  35.              1.41 2.18 -1.41,   0.77 2.30 -1.85,
  36.              0.00 2.42 -2.00,  -0.77 2.55 -1.85,
  37.             -1.41 2.67 -1.41,  -1.85 2.79 -0.77,
  38.             -2.00 2.91  0.00,  -1.85 3.03  0.77,
  39.             -1.41 3.15  1.41,  -0.77 3.27  1.85,
  40.              0.00 3.39  2.00,   0.77 3.52  1.85,
  41.              1.41 3.64  1.41,   1.85 3.76  0.77,
  42.              2.00 3.88  0.00,
  43.         ]
  44.     }
  45. }
  46.